package vaccine.appointment.system.appointmentrecord.errorcode;

import vaccine.appointment.system.common.errorcode.ErrorCode;

/**
 * 预约错误码
 */
public interface AppointmentErrorCode {
    ErrorCode APPOINTMENT_NOT_FOUND = new ErrorCode(3001, "预约记录不存在");
    ErrorCode APPOINTMENT_CANNOT_CANCEL = new ErrorCode(3002, "只能取消待接种状态的预约");
    ErrorCode VACCINE_OUT_OF_STOCK = new ErrorCode(3003, "疫苗库存不足");
    ErrorCode APPOINTMENT_TIME_CONFLICT = new ErrorCode(3004, "该时间段已有预约");
    ErrorCode VACCINE_EXPIRED = new ErrorCode(3005, "疫苗已过期");
    ErrorCode PERSON_NOT_AUTHORIZED = new ErrorCode(3006, "无权为该人员预约");
}

